/*============================================================================*/
/*  Copyright (C) 2009-2014, iSOFT INFRASTRUCTURE SOFTWARE CO.,LTD.
 *  
 *  All rights reserved. This software is iSOFT property. Duplication 
 *  or disclosure without iSOFT written authorization is prohibited.
 *  
 *  @file       <Com_Cfg.h>
 *  @brief      <>
 *  
 *  <MCU:TC1782>
 *  
 *  @author     <>
 *  @date       <2016-08-31 13:41:38>
 */
/*============================================================================*/


#ifndef  COM_CFG_H
#define  COM_CFG_H

/*=======[V E R S I O N  I N F O R M A T I O N]===============================*/
#define COM_CFG_H_AR_MAJOR_VERSION  3
#define COM_CFG_H_AR_MINOR_VERSION  2
#define COM_CFG_H_AR_PATCH_VERSION  0
#define COM_CFG_H_SW_MAJOR_VERSION  1
#define COM_CFG_H_SW_MINOR_VERSION  0
#define COM_CFG_H_SW_PATCH_VERSION  0

/*=======[I N C L U D E S]====================================================*/
#include "Com_Callout.h"

/*=======[M A C R O S]========================================================*/
/* Config Com Module Variant */
#define COM_VARIANT_PC             VARIANT_PRE_COMPILE
#define COM_VARIANT_LT             VARIANT_LINK_TIME
#define COM_VARIANT_PB             VARIANT_POST_BUILD
#define COM_VARIANT_CFG            COM_VARIANT_PC   /* Variant Config */

/* Config Com Module base time, just for show, unit is ms, Generated by Tool */
#define COM_CONFIGURATION_TIMEBASE        10

/* Config Use DET or Not, Generated by Tool */
#define COM_DEV_ERROR_DETECT              STD_OFF

/* Config get Com_VersionInfo or not, Generated by Tool */
#define COM_VERSION_INFO_API              STD_OFF

/* IPdu Number which has IPdu-Callout Func, Generated by Tool */
#define COM_IPDUCALLOUT_NUMBER            0

/* Enable/Disable Com_Filter */
#define COM_FILTER_ENABLE                 STD_ON

/* Enable/Disable Com_Updatebit */
#define COM_UPDATEBIT_ENABLE              STD_ON

/* Enable/Disable Com_Gateway */
#define COM_GATEWAY_ENABLE                STD_ON

#define COM_CONFIGURATION_ID    00u

/* MAX Byte Number of all TxIPdus */
#define COM_TXIPDUBUFF_SIZE               9

/* MAX Byte Number of all RxIPdus */
#define COM_RXIPDUBUFF_SIZE               9

/* Max byte number of single rxPdu with Deferred */
#define COM_RXSINGLEDEFIPDU_SIZE          8

/* MAX Byte Number of BOOLEAN_Value, Signal(Rx_No_Fliter/Tx) + Description(Destination) + Tx Group Signal  */
#define COM_SIGNAL_BOOLBUFF_SIZE          0

/* MAX Number of UINT8_Value + SINT8_Value + UINT8_N, Signal(Rx_No_Fliter/Tx) + Description(Source + Destination) + Tx Group Signal  */
#define COM_SIGNAL_8BITBUFF_SIZE          2

/* MAX Number of UINT16_Value + SINT16_Value, Signal(Rx_No_Fliter/Tx) + Description(Source + Destination) + Tx Group Signal */
#define COM_SIGNAL_16BITBUFF_SIZE         2

/* MAX Number of UINT32_Value + SINT32_Value, Signal(Rx_No_Fliter/Tx) + Description(Source + Destination) + Tx Group Signal */
#define COM_SIGNAL_32BITBUFF_SIZE         0

/* MAX Byte Number of BOOLEAN_Value, Rx Group Signal */
#define COM_RXGROUPSIGNAL_BOOLBUFF_SIZE   0

/* MAX Number of UINT8_Value + SINT8_Value + UINT8_N, Rx Group Signal */
#define COM_RXGROUPSIGNAL_8BITBUFF_SIZE   0

/* MAX Number of UINT16_Value + SINT16_Value, Rx Group Signal */
#define COM_RXGROUPSIGNAL_16BITBUFF_SIZE  0

/* MAX Number of UINT32_Value + SINT32_Value, Rx Group Signal */
#define COM_RXGROUPSIGNAL_32BITBUFF_SIZE  0


/* Number of BOOLEAN_InvalidValue, Both Rx & Tx & Signal & GroupSignal & Gw_DestDesc, MAX is 2u */
#define COM_BOOLINVALIDVALUE_NUM          0

/* Number of UINT8_InvalidValue + SINT8_InvalidValue, Both Rx & Tx & Signal & GroupSignal & Gw_DestDesc */
#define COM_8BITINVALIDVALUE_NUM          0

/* Number of UINT16_SIGNAl + SINT16_InvalidValue, Both Rx & Tx & Signal & GroupSignal & Gw_DestDesc */
#define COM_16BITINVALIDVALUE_NUM         0

/* Number of UINT32_SIGNAl + SINT32_InvalidValue, Both Rx & Tx & Signal & GroupSignal & Gw_DestDesc */
#define COM_32BITINVALIDVALUE_NUM         0

/* These buffers save the DM Counters of RxSignals with update bits */
#define COM_SIGNALDM_CNTRBUFF_SIZE        0

/* These buffers save the DM Counters of RxSignal groups with update bits */
#define COM_SIGNALGROUPDM_CNTRBUFF_SIZE   0

/* Need Old Buffer rx signal bool type buffer size  */
#define COM_RXSIGNAL_NOB_BOOLBUFF_SIZE    0

/* Need Old Buffer rx signal 8 bit type buffer size */
#define COM_RXSIGNAL_NOB_8BITBUFF_SIZE    0

/* Need Old Buffer rx signal 16 bit type buffer size */
#define COM_RXSIGNAL_NOB_16BITBUFF_SIZE    0

/* Need Old Buffer rx signal 32 bit type buffer size */
#define COM_RXSIGNAL_NOB_32BITBUFF_SIZE    0

/* Number of IPduGroup, both Sub & Parent */
#define COM_IPDUGROUP_NUMBER              2

/* Number of RxIPdu Id Map*/
#define COM_RXIPDUIDMAP_NUMBER            2

/* Number of TxIPdu Id Map*/
#define COM_TXIPDUIDMAP_NUMBER            2

/* Number of RxIPdu */
#define COM_RXIPDU_NUMBER                 2

/* Number of TxIPdu */
#define COM_TXIPDU_NUMBER                 2

/* Number of RxSignal */
#define COM_RXSIGNAL_NUMBER               2

/* Number of TxSignal */
#define COM_TXSIGNAL_NUMBER               2

/* Number of RxSignalGroup */
#define COM_RXSIGNALGROUP_NUMBER          0

/* Number of RxGroupSignal */
#define COM_RXGROUPSIGNAL_NUMBER          0

/* Number of TxSignalGroup */
#define COM_TXSIGNALGROUP_NUMBER          0

/* Number of TxGroupSignal */
#define COM_TXGROUPSIGNAL_NUMBER          0

/* Number of Com_Signal_Filter */
#define COM_FILTER_PARAMARRAY_NUMBER      0

/* The number of tx signals, which need store TMC result */
#define COM_TXSIGNAL_TMCRST_NUMBER        0

/* The number of tx group signals, which need store TMC result */
#define COM_TXGROUPSIGNAL_TMCRST_NUMBER   0

/* The number of tx groups, which need TMC Counter */
#define COM_TXSIGNALGROUP_TMCCNTR_NUNBER  0

/* The number of tx signal , which is under OneEveryN Filter algorithm, For TxSignalOccurceBuffer*/
#define COM_TXSIGNAL_ONEEVERYN_NUMBER     0

/* The number of tx groupsignal, which is under OneEveryN Filter algorithm, For TxGroupSignalOccurceBuffer*/
#define COM_TXGRPSIG_ONEEVERYN_NUMBER     0

/* The number of rx signals, which is under OneEveryN Filter algorithm, For RxSignalOccurceBuffer*/
#define COM_RXSIGNAL_ONEEVERYN_NUMBER     0

/* The number of destination descriptions, which need store TMC result */
#define COM_DESTDESCRIPTION_TMCRST_NUMBER  0

/* The number of destination description, which is under OneEveryN Filter algorithm, For DestinationDescriptionOccurceBuffer*/
#define COM_DESTDESCRIP_ONEEVERYN_NUMBER   0


#define COM_TXMODE_NUMBER                 2

#define COM_SRCDESC_NUMBER                0
#define COM_DESTDESC_NUMBER               0
#define COM_SIGGWMAP_NUMBER               0
#define COM_SGROUPGWMAP_NUMBER            0
#define COM_GWDESTID_NUMBER               0
#define COM_GWRXIPDU_BUFF_SIZE               0
#define COM_GWTXIPDU_BUFF_SIZE               0
#define COM_GWTXGRPSIG_NUMBER                0


#define COM_TXPDUGROUP_1    0
#define COM_RXPDUGROUP_1    1

#define COM_RXPDU_0      0
#define COM_RXPDU_1      1

#define COM_TXPDU_0      0
#define COM_TXPDU_1      1

#define COM_SIGNAL_1     0
#define COM_SIGNAL_2     1

#define COM_SIGNAL_3     0
#define COM_SIGNAL_4     1






#endif  /* end of COM_CFG_H */

/*=======[E N D   O F   F I L E]==============================================*/

